package main

import (
	"bufio"
	"fmt"
	"os"

	"git.oschina.net/wodadehencou/tools/lib/display"
	"git.oschina.net/wodadehencou/tools/lib/number"
)

func main() {
	fmt.Println("Please input the number")
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		str := scanner.Text()
		if str == "exit" {
			os.Exit(0)
		}
		display.Num(number.Str2Num(str))
	}
}
